package com.kj.gitwe.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;


@Data
@ToString
@TableName("user")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String userName;

    private String roleCode;

    private String userPass;

    private String cname;

    private String isLogin;

    private String telphone;

    private String address;

    private String nation;

    private String email;

    private String userImg;

    private String gender;


    public User(String userName, String userPass, String cname) {
        this.userName = userName;
        this.userPass = userPass;
        this.cname = cname;
    }
}